<article class="help">
  <section class="main">
    <div class="headings">
      <p class="title">MERGE</p>
      <p class="subtitle">Create missing graph data</p>
    </div>
    <div class="content">
      <p>The <code>MERGE</code> clause ensures that an expected pattern exists in the graph, reconciling whether data was found, or needs to be created through sub-clauses <code>ON CREATE</code> and <code>ON MATCH</code></p>
      <div class="links">
        <div class="link">
          <p class="title">Reference</p>
          <p class="content">
            <code><a target="_blank" href="https://neo4j.com/docs/developer-manual/3.2/cypher/clauses/merge/">MERGE</a> manual page</code>
            <code><a target="_blank" href="https://neo4j.com/docs/developer-manual/3.2/cypher/clauses/merge/#query-merge-on-create-on-match">ON CREATE</a> manual page</code>
            <code><a target="_blank" href="https://neo4j.com/docs/developer-manual/3.2/cypher/clauses/merge/#query-merge-on-create-on-match">ON MATCH</a> manual page</code>
          </p>
        </div>
        <div class="link">
          <p class="title">Related</p>
          <p class="content">
            <a help-topic="match">:help MATCH</a>&nbsp;
            <a help-topic="create">:help CREATE</a>&nbsp;
            <a help-topic="cypher">:help Cypher</a>
          </p>
        </div>
      </div>
    </div>
  </section>
  <section class="example">
    <figure class="runnable">
      <pre>
MERGE (charlie:Person { name:'Charlie Sheen', age:10 })
RETURN charlie
      </pre>
      <figcaption>Look for a person named Charlie Sheen, age 10. If not found, create such a person.</figcaption>
    </figure>
  </section>
</article>
